package com.wntms.ywa.service.impl;


import com.wntms.ywa.dao.ModifyDao;
import com.wntms.ywa.pojo.Modify;
import com.wntms.ywa.service.ModifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ModifyServiceImpl implements ModifyService {
    @Autowired
    private ModifyDao modifyDao;

    @Override
    public Modify find(Integer id) {
        return modifyDao.find(id);
    }

    @Override
    public void updateFreightContract(Modify modify) {
        modifyDao.updateFreightContract(modify);
    }

    @Override
    public void updateCustomerIn(Modify modify) {
        modifyDao.updateCustomerIn(modify);
    }

    @Override
    public void updateFreightInformation(Modify modify) {
        modifyDao.updateFreightInformation(modify);
    }

    @Override
    public void updateCustomerInformation(Modify modify) {
        modifyDao.updateCustomerInformation(modify);
    }
}
